
package com.monlyu.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Transient;

import com.monlyu.annotation.Comment;

@Entity(name = "t_manuscript2Image")
@Comment(common = "稿件对应的图片")
public class Manuscript2Image extends BaseVo {

    @Id
    @Column(name = "m_id")
    @Comment(common = "ID编号")
    private Long id;

    @ManyToOne
    @JoinColumn(name = "f_manuscript")
    private Manuscript manuscript;

    @Column(name = "f_imageId")
    private Long imageId;

    @Transient
    private String mark;

    @Transient
    private String path;

    public String getPath(){
        return path;
    }

    public void setPath(String path){
        this.path = path;
    }

    public String getMark(){
        return mark;
    }

    public void setMark(String mark){
        this.mark = mark;
    }

    public Long getId(){
        return id;
    }

    public void setId(Long id){
        this.id = id;
    }

    public Manuscript getManuscript(){
        return manuscript;
    }

    public void setManuscript(Manuscript manuscript){
        this.manuscript = manuscript;
    }

    public Long getImageId(){
        return imageId;
    }

    public void setImageId(Long imageId){
        this.imageId = imageId;
    }

}
